package org.prail.ui.utils;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class UIUtils {
	
	public static void center(final JFrame frame, final int width, final int height) {
		final Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
		final int x = (screen.width - width) / 2;
		final int y = (screen.height - height) / 2;
		frame.setBounds(x, y, width, height);
	}

}
